<!--
 * @Author: panghu chenjh@datamargin.com
 * @Date: 2024-04-03 16:45:14
 * @LastEditors: panghu chenjh@datamargin.com
 * @LastEditTime: 2024-04-03 16:59:40
 * @FilePath: \zheye\src\components\DropdownItem.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <li class="dropdown-option" :class="{'is-disabled': disabled}">
    <slot></slot>
  </li>
</template>

<script>
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'DropdownItem',
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  },
  setup () {
    return {}
  }
})
</script>

<style lang="scss" scoped>
.dropdown-option.is-disabled{
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}
</style>
